package com.nycreativity.elecreativity.service;

import com.baomidou.mybatisplus.extension.service.IService
import com.nycreativity.elecreativity.entity.param.goodstype.GoodsTypeAddParam
import com.nycreativity.elecreativity.entity.param.goodstype.GoodsTypeUpdateParam
import com.nycreativity.elecreativity.entity.po.GoodsType
import com.nycreativity.elecreativity.entity.vo.goodstype.GoodsTypeVO

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sxt && ttxxi
 * @since 2021-03-11
 */
interface GoodsTypeService : IService<GoodsType>{

    fun queryById(id: Long): GoodsTypeVO

    fun queryAll(): List<GoodsTypeVO>

    fun add(goodsTypeAddParam: GoodsTypeAddParam): Boolean

    fun updateById(goodsTypeUpdateParam: GoodsTypeUpdateParam): Boolean

    /**
     * 根据id删除
     */
    fun deleteById(id: Long): Boolean

}
